<div class="post-preview">
  <a href="{{ url_for('get_post_id', pid=post.id) }}">
    <h2 class="post-title">
      {{ post.title }}
    </h2>
    {% for tag in post.tags %}
      <span class="badge badge-secondary">#{{ tag }}</span>
    {% endfor %}
    <h3 class="post-subtitle">
      {{ post.description }}
    </h3>
  </a>
  <p class="post-meta">由
    <a href="{{ url_for('about') }}"> {{ post.author }} </a>
    发表于 {{ post.modified.strftime('%B %d, %Y') }}</p>
</div>
<hr>